#pragma once

#include <iostream>
#include <vector>

#include <cstdlib>

typedef void (*task_func)(void);

void Task1()
{
    std::cout << "刷新日志" << std::endl;
}

void Task2()
{
    std::cout << "更新数据" << std::endl;
}

void Task3()
{
    std::cout << "检测环境" << std::endl;
}

void Task4()
{
    std::cout << "申请空间" << std::endl;
}

void Task_Exit()
{
    std::cout << "退出程序" << std::endl;
    exit(0);
}

void LoadProcess(std::vector<task_func>* tasks)
{
    tasks->push_back(Task1);
    tasks->push_back(Task2);
    tasks->push_back(Task3);
    tasks->push_back(Task4);
}